//
//  TDCarDetailDescCell.m
//  TBRentClient
//
//  Created by tonbright on 2018/6/5.
//  Copyright © 2018年 tonbright. All rights reserved.
//

#import "TDCarDetailDescCell.h"
#import <UIImageView+WebCache.h>
@implementation TDCarDetailDescCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setDetailCarModel:(TDCarSourceDetailModel *)detailCarModel {
    _detailCarModel = detailCarModel;
    _lbe_desctext.text = detailCarModel.titleDesc;
    _lbe_onOffTime.text = [NSString stringWithFormat:@"营业时间:%@-%@",detailCarModel.servicetimefrom,detailCarModel.servicetimeto];
    _lbe_storeName.text = detailCarModel.storename;
    
    
    NSString *tmpImageUrl = [NSString stringWithFormat:@"http://121.40.92.131/deepdriving/%@",detailCarModel.logo];
//    tmpImageUrl = [tmpImageUrl stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
    // MARK: - 有中文名称不能显示--更换了三种方法了,先不管了,做其他的吧
    tmpImageUrl = [HelpObject getUrlStringFromString:tmpImageUrl];
    [_imv_logo sd_setImageWithURL:[NSURL URLWithString:tmpImageUrl] placeholderImage:[UIImage imageNamed:@"tdPlaceHold"]];
}


- (IBAction)isShowDetailDescBtnClick:(UIButton *)sender {
    if ([self.delegate respondsToSelector:@selector(detailDescCellShowDescBtnClick:)]) {
        [self.delegate detailDescCellShowDescBtnClick:0];
    }
}

@end
